package com.hz.house.enums;

public enum SearchTagTotalPriceEnum {

	//总价标签

	TOTAL_PRICE100("100万",1,0,1000000),
	TOTAL_PRICE100PLUS("100万+",2,1000000,2000000),
	TOTAL_PRICE200PLUS("200万+",3,2000000,3000000),
	TOTAL_PRICE300PLUS("300万+",4,3000000,4000000),
	TOTAL_PRICE400PLUS("400万+",5,4000000,5000000),
	TOTAL_PRICE500PLUS("500万+",6,5000000,1000000000);

	private String  name;
	
	private int id;//该标签的id
	
	private int min;//总价最小
	
	private int max;//总价最大
	
	
	SearchTagTotalPriceEnum(String name,int id,int min,int max) {
		this.name=name;
		this.id=id;
		this.min=min;
		this.max=max;
	}

	
	public static SearchTagTotalPriceEnum getSearchTagById(int id) {
		SearchTagTotalPriceEnum[] all = SearchTagTotalPriceEnum.values();
		for(SearchTagTotalPriceEnum s:all) {
			if(id==s.getId())
				return s;
		}
		return null;
	}

	public String getName() {
		return name;
	}


	public int getId() {
		return id;
	}


	public int getMin() {
		return min;
	}


	public int getMax() {
		return max;
	}
	
	
}
